import axios from 'axios'

// import { Message } from 'element-ui'

axios.defaults.headers['Content-Type'] = 'application/ocset-stream'
// 创建axios实例
// let token = localStorage.getItem('token')
const service = axios.create({
  // axios中请求配置有baseURL选项，表示请求URL公共部分
  baseURL: 'https://88zkaq.com/cls/prod-api',
  // baseURL: 'http://192.168.0.142:8300',
  // 超时
  timeout: 10000,
  headers: {
    "Content-Type": "application/json;charset=utf-8",
    // "Contetnt-Type": "application/ocset-stream",
    "Access-Control-Allow-Origin": "*",
    "Authorization": "",
  }
})

export default service